import request from "@/utils/request";

// 商户企业入驻
export function qiyeEnter(data) {
  return request({
    url: '/bs/qiyeEnter/enter',
    method: 'post',
    data
  })
}

// 景区列表
export function getJingquList() {
  return request({
    url: '/bs/jingqu/getList',
    method: 'get'
  })
}

// 商铺列表
export function getQiyeList(data) {
  return request({
    url: '/bs/qiyeEnter/list',
    method: 'get',
    data
  })
}

// 商铺删除
export function qiyeDel(data) {
  return request({
    url: '/bs/qiyeEnter/detele',
    method: 'get',
    data
  })
}

// 商铺详情
export function getQiyeDetail(data) {
  return request({
    url: '/bs/qiye/detail',
    method: 'get',
    data
  })
}

// 商户编辑
export function qiyeEdit(data) {
  return request({
    url: '/bs/qiyeEnter/edit',
    method: 'post',
    data
  })
}

// 获取商铺上报数据列表
export function qiyeReportDataList(data) {
  return request({
    url: '/system/qiyeBusinessData/list',
    method: 'get',
    data
  })
}

// 数据上报详情
export function qiyeReportDetail(id) {
  return request({
    url: '/system/qiyeBusinessData/' + id,
    method: 'get'
  })
}

// 上报数据提交/修改
export function qiyeReportSubmit(data) {
  return request({
    url: '/system/qiyeBusinessData/edit',
    method: 'post',
    data
  })
}
